/*1.第一个java代码*/
/*public class Test {
    public static void main(String[] args) {
        System.out.println("QQ.exe");
    }
}
public class Test{
    public static void main(String[] args) {
        char[] cha={'a','k'};
        System.out.println(cha);
    }
}*/
/*2.强制类型转换*/
/*public class Test {
    public static void main(String[] args) {
        byte a=10;
        int in =130;
        a=(byte)in;

        System.out.println(a);

    }
}
public class Test {
    public static void main(String[] args) {
        byte a=10;
        byte b=100;
        byte c=(byte)(a+b);
        System.out.println(c);
    }
}*/
/*3.字符串计算长度*/
/*public class Test {
    public static void main(String[] args) {
        String r1="hello";
        String r2=" bit!";
        System.out.println(r1+r2);
        System.out.println((r1+r2).length());
    }
}*/
/*4字符串拼接*/
/*public class Test {
    public static void main(String[] args) {
        int q=1000000000;
        System.out.println("int q="+1000000000);
    }
}*/
/*5整形转字符串*/
/*public class Test {
    public static void main(String[] args) {
        int a=198;
        String str=(a+"");
        String str1=String.valueOf(a);
        System.out.println(str);
        System.out.println(str1);
    }
}*/
/*字符串转整形*/
public class Test {
    public static void main(String[] args) {
        String str = "123";
        int a = Integer.valueOf(str);
        System.out.println(a);
    }
        public static void main1(String[] args) {
            int a=10;
            long b=98;
            a+=b;
            System.out.println(a);
    }
}





